package com.zhangye.test.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zhangye.test.mapper.ArNavigationMapper;
import com.zhangye.test.model.ArNavigation;

@Service
public class ArNavigationService {

	@Autowired
	private ArNavigationMapper testMapper;
	
	public int insert(ArNavigation t){
		int i = testMapper.insert(t);
		return i;
	}

	
	public List<ArNavigation> selectByDisctance(String lat,String lng){
		List<ArNavigation> list = testMapper.selectByDistance(lat,lng);
		return list;
	}
	
}
